package com.reshare.service;

import com.reshare.base.BaseService;
import com.reshare.bean.Permission;
import com.reshare.mapper.PermissionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PermissionService extends BaseService<Permission,Integer> {


    @Resource
    private PermissionMapper permissionMapper;


    public List<String> queryUserHasRolesHasPermissions(Integer userId){
       return permissionMapper.selectUserHasRolePermission(userId);
    }
}
